# -*- coding: utf-8 -*-
from flask_script import Manager, Shell
from apps import create_app, db
app = create_app('production')
manager = Manager(app)



def make_shell_context():
    return dict(
        app=app, db=db,
    )


@manager.command
def test():
    pass


manager.add_command("shell", Shell(make_context=make_shell_context))

if __name__ == "__main__":
    #manager.run()
    # app.run(debug=True ,port=6526)
    app.run(debug=True ,port=9527)
